﻿using System;
using System.Collections.Generic;
using Rabbit.Logic;

namespace RabbitManage.UI
{
    public partial class OrderSent : System.Web.UI.Page
    {
        protected OrderViewShop orderViewShop = new OrderViewShop();
        protected string CompanyJson = DiliveryCompanyData.GetCompanyJson();
        protected string id;

        protected void Page_Load(object sender, EventArgs e)
        {
            id = Request["id"];
            if (string.IsNullOrEmpty(id)) return;

            Order order = RabbitUse.GetOrderById(Db.Store, id);
            orderViewShop = RabbitPunch.GetOrderViewShop(Db.Store, order);
            productRepeater.DataSource = orderViewShop.ProductSnapWithQuantityList;
            productRepeater.DataBind();
        }
    }
}